package com.tianfeng.huayi.service.impl;

import com.tianfeng.huayi.entity.Feeitem;
import com.tianfeng.huayi.entity.PaymentRecord;
import com.tianfeng.huayi.mapper.PaymentRecordMapper;
import com.tianfeng.huayi.service.IPaymentRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaymentRecordServiceImpl implements IPaymentRecordService {

    @Autowired
    private PaymentRecordMapper paymentRecordMapper;

    @Override
    public PaymentRecord selectPaymentRecordByRecordId(Long recordId) {
        return paymentRecordMapper.selectPaymentRecordByRecordId(recordId);
    }

    @Override
    public List<PaymentRecord> selectPaymentRecordList(PaymentRecord paymentRecord) {
        return paymentRecordMapper.selectPaymentRecordList(paymentRecord);
    }

    @Override
    public int insertPaymentRecord(PaymentRecord paymentRecord) {
        return paymentRecordMapper.insertPaymentRecord(paymentRecord);
    }

    @Override
    public Feeitem selectFeeitemByItemId(Long itemId) {
        return paymentRecordMapper.selectFeeitemByItemId(itemId);
    }
}
